package com.frxuexi.park2209_2.video.adapter

import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.GlideUtils
import com.frxuexi.base.bean.VideoBeanItem
import com.frxuexi.base.bean.VideoCommentBeanItem
import com.frxuexi.park2209_2.R

class VideoCommentAdapter:BaseQuickAdapter<VideoCommentBeanItem,BaseViewHolder>(R.layout.item_comment) {
    override fun convert(helper: BaseViewHolder, item: VideoCommentBeanItem) {
        helper.setText(R.id.comment_author,item.username)
        helper.setText(R.id.comment_time,item.createtime)
        helper.setText(R.id.comment_content,item.msg)
        GlideUtils.circleImg(item.icon,helper.getView(R.id.comment_img))
    }
}